package com.jxb.test20241216;

/**
 * 类注释
 *
 * @author jiaobo
 * @date Created in 2024/12/23 0:40
 **/
public class Sort1 {

    public static void main(String[] args) {

    }

    public int[] sort(int[] arr) {
        for (int i = 0;i<arr.length;i++) {
            for (int j = 0;j<arr.length;j++) {
                if (arr[j] > arr[j+1]) {
                    int temp = arr[j];
                    arr[j] = arr[j+1];
                    arr[j+1] = temp;
                }
            }
        }
        return arr;
    }

}
